package com.lx.designPattern.builder;


import com.lx.designPattern.builder.impl.ChickenBurger;
import com.lx.designPattern.builder.impl.Coke;
import com.lx.designPattern.builder.impl.Pepsi;
import com.lx.designPattern.builder.impl.VegBurger;

/**
 * Description:
 * Copyright:   Copyright (c)2019
 * Company:     zefu
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2022-03-04 11:45:43
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2022-03-04     张李鑫                     1.0         1.0 Version
 */
public class MealBuilder {

    public Meal prepareVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
